package com.zb.uniman.interceptor;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.web.servlet.config.annotation.InterceptorRegistration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

import javax.annotation.Resource;

/**
 * Author:B
 * Description:
 */
@Import(TokenInterceptor.class)
@Configuration
public class InterceptorConfig implements WebMvcConfigurer {
    @Resource
    private TokenInterceptor interceptor;
    @Override
    public void addInterceptors(InterceptorRegistry registry) {

//        InterceptorRegistration registration = registry.addInterceptor(null);
//        registration.addPathPatterns("/**");
    }
}